package com.rmb.mart.entity.api;

import com.rmb.common.validated.AddGroup;
import com.rmb.common.validated.UpdateGroup;
import com.rmb.mart.qurey.QueryPage;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.util.Date;

/**
 * (MartApiCharge)实体类
 *
 * @author makejava
 * @since 2021-01-20 09:37:07
 */
public class MartApiCharge extends QueryPage implements Serializable {
    private static final long serialVersionUID = 524654770035872732L;

    @Null(message = "新增不能指定id",groups = {AddGroup.class})
    @NotNull(message = "修改必须指定id",groups = {UpdateGroup.class})
    private Long id;
    /**
     * 接口名称
     */
    private String name;
    /**
     * 计费类型
     */
    @NotEmpty(message = "计费类型不能为空",groups = {AddGroup.class})
    private String type;
    /**
     * 次数
     */
    private Integer degree;
    /**
     * 天数
     */
    private Integer days;
    /**
     * 价格
     */
    private Double price;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改人
     */
    private String updateBy;
    /**
     * 修改时间
     */
    private Date updateTime;


    /**
     * api计费状态
     */
    private Integer status;


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getDegree() {
        return degree;
    }

    public void setDegree(Integer degree) {
        this.degree = degree;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}